package yawning.mew.cat;

import yawning.mew.sim.SimulationEvent;

public class EventOoC extends SimulationEvent {
	CatModelSimState mState;

	EventOoC(CatModelSimState state) {
		super(state.mSimEngine);
		mState = state;
	}

	public void run() {
		if (mState.mSimEngine.getRandom().nextBoolean(mState.mModel.pOoCProc)) {
			mNrOoCProcs++;

			if (isUp()) mNrOoCProcsWasted++;

			if (mState.mIsLogging) mState.mLog.log("Omen of Clarity\n");

			schedule(mState.mModel.oocBuffDuration);
		}
	}

	int mNrOoCProcs = 0;
	int mNrOoCProcsConsumed = 0;
	int mNrOoCProcsWasted = 0;
	long mOocEnergyReturn = 0;
}